package com.ruoyi.project.wf.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 流程实例信息对象 wf_process_inst
 *
 * @author XQ.XU
 * @date 2020-03-20
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Accessors(chain = true)
@TableName(value = "wf_process_inst")
public class WfProcessInst extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流程编号 */
    @Excel(name = "流程编号")
    private String procCode;

    /** 流程名称 */
    @Excel(name = "流程名称")
    private String procName;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String busiType;

    /** 创建编号 */
    @Excel(name = "创建编号")
    private String creatorCode;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String creatorName;

    /** 完成时间 */
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishedTime;

    /** 主键 */
    @TableId(value = "id")
    private String id;

    /** 流程主键 */
    @Excel(name = "流程主键")
    private String procDefId;
    @TableField(exist = false)
    private WfProcessDef wfProcessDef;

}
